package com.example.huajia.wx.db.dao;

import com.example.huajia.wx.db.pojo.TbUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Mapper
public interface TbUserDao {
    public boolean haveRootUser();

    public int insert(HashMap param);

    public Integer searchIdByOpenId(String openId);


    public TbUser searchById(int userId);

    public ArrayList<HashMap> searchUserById(int userId);

    public HashMap searchUserSummary(int userId);

    public ArrayList<HashMap> searchMembers(List param);

    public Integer searchGmId();

    public List<HashMap> selectUserPhotoAndName(List param);

    public int searchUserIdByEmail(String email);

    public int activeUserAccount(HashMap param);

    public int updateUserInfo(HashMap param);

    public ArrayList<HashMap> searchUserContactList();

    public int searchUserPoint(Integer id);

    public int updateUserPoint(HashMap param);

    public ArrayList<HashMap> getAcceptId(String friend);

}
